﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IngresoRendicion.aspx.cs" Inherits="IngresoRendicion" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
       <!--Diseno general -->
            <link href="css/disenosistema.css" rel="stylesheet" />
       <!-- Datepiket-->
        <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
        

       <!-- Modal Form-->
            <script type="text/javascript" src="Script/jquery-1.7.1.min.js"></script>
            <script type="text/javascript" src="Script/jquery-ui-1.8.17.custom.min.js"></script>
            <script type="text/javascript" src="Script/DetGastoScript.js"></script>
            <link href="Style/jquery-ui-1.8.17.custom.css" rel="Stylesheet" type="text/css" />
       
          <script type="text/javascript">

              jQuery(function ($) {
                  $.datepicker.regional['es'] = {
                      closeText: 'Cerrar',
                      prevText: 'Anterior',
                      nextText: 'Siguiente',
                      currentText: 'Hoy',
                      monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
                      monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
                      dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
                      dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Juv', 'Vie', 'Sáb'],
                      dayNamesMin: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sá'],
                      weekHeader: 'Sm',
                      dateFormat: 'dd-mm-yy',
                      firstDay: 1,
                      numberOfMonths: 1,
                      isRTL: false,
                      showMonthAfterYear: false,
                      yearSuffix: ''
                  };
                  $.datepicker.setDefaults($.datepicker.regional['es']);
              });
        
        $(document).ready(function () {
            $("#txtFechaDocumento2").datepicker({
                changeMonth: true,
                changeYear: true,
                onSelect: function (dateText, inst) { }
            });
        });

        </script>

  <style type="text/css">
        .DynamicDialogStyle
        {
            background-color: #FFFFFF;
            font-size: small;
        }
       
    </style>
</head>
<body>
  
    

      
        <form id="Form1" class="form mw920" runat="server">
            
            <asp:ScriptManager ID="ScriptManager" runat="server">
            </asp:ScriptManager>
          


             <!--  <div id="dialog-form" title="Agregar Gasto" >-->
            <div id='LocalDialogModal' style="display: none">
                    <table style="width:100%;">
                <tr>
                    <td style="background-color: #BFDFFF">
                        <asp:Label ID="lblRendicionNro" runat="server" Text="Rendición Nro."></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbl_NRO_RENDICION" runat="server" Text="1"></asp:Label>
                    </td>
                    <td style="background-color: #BFDFFF">
                        <asp:Label ID="lblFechaDocumento" runat="server" Text="Fecha Documento"></asp:Label>
                    </td>
                    <td>
                       <asp:TextBox ID="txtFechaDocumento2" runat="server" Width="100px" CssClass="calendario" ></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td style="background-color: #BFDFFF">
                        <asp:Label ID="lblTipoGasto" runat="server" Text="Tipo Gasto"></asp:Label>
                     </td>
                    <td>
                        <asp:DropDownList ID="DrTipoGasto" runat="server" Width="250px">
                            <asp:ListItem Value="1">PRUEBA 1</asp:ListItem>
                            <asp:ListItem Value="2">Prueba 2</asp:ListItem>
                            <asp:ListItem Value="3">prueba 3</asp:ListItem>
                        </asp:DropDownList>
                     </td>
                    <td style="background-color: #BFDFFF">
                        <asp:Label ID="lblGastoAsociado" runat="server" Text="Gasto Asociado"></asp:Label>
                     </td>
                    <td>
                        <asp:DropDownList ID="DrGastoAsociado" runat="server" Width="250px">
                        </asp:DropDownList>
                     </td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblTipoDocumento" runat="server" Text="Tipo Documento"></asp:Label>
                     </td>
                    <td>
                        <asp:RadioButtonList ID="RdTipoDocumento" runat="server" RepeatDirection="Horizontal" Width="150px">
                            <asp:ListItem Value="1">Boleta</asp:ListItem>
                            <asp:ListItem Value="2">Factura</asp:ListItem>
                        </asp:RadioButtonList>
                     </td>
                    <td style="background-color: #BFDFFF">
                        <asp:Label ID="lblNroDocumento" runat="server" Text="Nro. Documento"></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtNroDocumento" runat="server" Width="100px" ></asp:TextBox>
                     </td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblRutProveedor" runat="server" Text="Rut Proveedor/Beneficiario"></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtRutProveedor" runat="server" Width="100px"></asp:TextBox>
                     </td>
                    <td colspan="2">
                        <asp:DropDownList ID="DrProveedorBenificiario" runat="server" Width="250px">
                        </asp:DropDownList>
                     </td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblDescripcion" runat="server" Text="Descripción"></asp:Label>
                     </td>
                    <td colspan="3">
                        <asp:TextBox ID="TxtDescripcion" runat="server" Height="50px" TextMode="MultiLine" Width="98%"></asp:TextBox>
                     </td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblAdjuntar" runat="server" Text="Adjuntar Archivo"></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtAdjuntar" runat="server" Width="240px"></asp:TextBox>
                     </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblMontoNeto" runat="server" Text="Monto Neto"></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtMontoNeto" runat="server" Width="100px"></asp:TextBox>
                     </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblIVA" runat="server" Text="I.V.A."></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtIVA" runat="server" Width="100px"></asp:TextBox>
                     </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblretencion" runat="server" Text="Retencion"></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtRetencion" runat="server" Width="100px"></asp:TextBox>
                     </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td class="auto-style1" style="background-color: #BFDFFF">
                        <asp:Label ID="lblTotalPagado" runat="server" Text="Total Pagado"></asp:Label>
                     </td>
                    <td>
                        <asp:TextBox ID="TxtTotalPago" runat="server" Width="100px"></asp:TextBox>
                     </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td class="auto-style1">
                        <asp:Button ID="BtnGuardarGasto" runat="server" CssClass="icnBtnGuardar" Text="Guardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="143px" OnClick="BtnGuardarGasto_Click" />
                     </td>
                    <td>
                        <asp:Button ID="BtnCancelarGasto" runat="server" CssClass="icnBtnCancelar" Text="Cancelar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="143px" />
                     </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                 </table>

              </div>
        <fieldset>
              <legend><strong>Nueva Rendición</strong></legend>             
                 <table style="width:80%;">
              <td>
                    <asp:Label ID="Label1" runat="server" Text="Proyecto"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="260px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Centro de Costo"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Fondo Asignado"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Saldo"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server" Width="250px"></asp:TextBox>
                </td>
            </tr>
           
            <tr>
                <td colspan="2">
                  <asp:UpdatePanel ID="UpdatePanel" runat="server">
                        <ContentTemplate>
                             <table style="width:100%;">
                              <tr>
                                <td>
                       
                                        <div>
                                            <asp:Button ID="LoadLocalDialog" runat="server" Text="Agregar Gasto" CssClass="icnBtnAgregar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="143px" />
                                        </div>
                            
                                </td>
                                </tr>
                                <tr>
                                 <td style="font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: small">
                                    <asp:GridView ID="grRendicion" runat="server" AutoGenerateColumns="False" GridLines="None"
                                AllowPaging="True" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
                                PageSize="40" CellPadding="4" ForeColor="#333333" BorderStyle="Solid" BorderWidth="1px" CellSpacing="1" >
    
                                            <AlternatingRowStyle BackColor="White" CssClass="alt" ForeColor="#284775" />
    
                                            <Columns>
                                                <asp:CommandField CausesValidation="False" HeaderText="Edit" ShowSelectButton="True" SelectText="&lt;input  id=&quot;CargaPrue&quot; type='submit' value=&quot;&quot; style='border-width: thin; border-style: none; background: url(&quot;Images/editar.gif&quot;) left center no-repeat; padding-left:20px;'/&gt;" />
                                            <asp:BoundField DataField="NroGasto" HeaderText="Nro. Gasto" />
                                            <asp:BoundField DataField="FechaDocumento" HeaderText="Fecha Docto." />
                                            <asp:BoundField DataField="TipoGasto" HeaderText="Tipo Gasto" Visible="False" />
                                            <asp:BoundField DataField="TipoDocumento" HeaderText="Tipo Documento">
                                            </asp:BoundField>
                                            <asp:BoundField DataField="NroDocumento" HeaderText="Nro. Documento" />
                                            <asp:BoundField DataField="Proveedor" HeaderText="Proveedor/Beneficiario" />
                                            <asp:BoundField DataField="Descripcion" HeaderText="Descripción">
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Entrada" HeaderText="Entrada">
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Salida" HeaderText="Salida" />
                                                <asp:CommandField DeleteText="&lt;IMG SRC=images/Borrar3.gif BORDER=0&gt;" HeaderText="Elim" ShowDeleteButton="True" />
                                        </Columns>
                                            <EditRowStyle BackColor="#999999" />
                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="#284775" CssClass="pgr" ForeColor="White" HorizontalAlign="Center" />
                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                    </asp:GridView>
                                </td>
                
                            </tr>
                            </table>
                        </ContentTemplate>
                </asp:UpdatePanel> 
                </td>
            </tr>
            </table>
     </fieldset>
             &nbsp;
           

            <asp:Button ID="btnGuardarBorrador" runat="server" Text="Guardar Borrador" class="icnBtnGuardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" OnClick="btnGuardarBorrador_Click" Width="165px" />
            &nbsp;
            <asp:Button ID="btnEnviar" runat="server" Text="Enviar" class="icnBtnGuardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" OnClick="btnEnviar_Click" Width="165px" />
    </form>
    
        <br />
        <br />
  
</body>
</html>

